import axios from "axios";
//获取search页面的热门标签
export function reqGetHotMate(data) {
  return axios({
    url: `/api/Page/EditableArea/${data}`,
    method: "GET",
  });
}
//https://api.ituring.com.cn/api/Search/Books?q=Python&page=2

//
// export function reqGetBook(keyword) {
//   return axios({
//     url: `/api/Search/Books?${keyword}`,
//     method: "GET",
//   })
// }
//获取个人中心页面的数据https://api.ituring.com.cn/api/Space/PublicInfo?id=474373
export function reqGetPersonal(dataId) {
  return axios({
    url: `/api/Space/PublicInfo/${dataId}`,
    method: "GET",
  });
}
// 获取最热的数据https://api.ituring.com.cn/api/Space/Article/?id=274337&page=1&sort=hot
export function reqGetHotList(dataId) {
  return axios({
    url: `/api/Space/Article/${dataId}&page=1&sort=hot`,
    method: "GET",
  });
}

// 获取最新的数据https://api.ituring.com.cn/api/Space/Article/?id=274337&page=1&sort=new
export function reqGetNewList(dataId) {
  return axios({
    url: `/api/Space/Article/${dataId}&page=1&sort=new`,
    method: "GET",
  });
}

// 获取文集数据https://api.ituring.com.cn/api/Space/Category/?id=274337
export function reqGetCategoryList(dataId) {
  return axios({
    url: `/api/Space/Category/${dataId}`,
    method: "GET",
  });
}
